//
//  MarketNoteViewController.h
//  MartketNote
//
//  Created by Nguyen Minh Giang on 1/14/14.
//  Copyright (c) 2014 Nguyen Minh Giang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ReadWriteDataClass.h"
#import "LanguageClass.h"


#import "PopupView.h"

#define TAB_0  0
#define TAB_1 1
#define TAB_2 2
#define TOP_BAR_HEIGHT 50
#define BOTTOM_BAR_HEIGHT 50
#define LINE_HEIGHT 1
#define TABLE_VIEW_CELL_HEIGHT 100
#define TAB_TABLE_BEGIN 1000
#define NUMBER_ARRAY @"0123456789."



@interface MarketNoteViewController : UIViewController<UITableViewDataSource, UITableViewDelegate, UITextFieldDelegate, UITextViewDelegate, UIGestureRecognizerDelegate, PopupViewDelegate>
{
    int tabFocus;
    
    //again
    UIView *mainView;
    UIView *addView;
    UIView *tab0View;
    UIView *tab1View;
    UIView *tab2View;
    UIView *tab0MainView;
    UIView *tab0DetailView;
    UITableView *tableTab0;
    UIView *allDetailView;
    UIView *allAddView;
    
    //in main
    UIButton *btnTab0;
    UIButton *btnTab1;
    UIButton *btnTab2;
    UIImageView *iconTab0;
    UIImageView *iconTab1;
    UIImageView *iconTab2;
    
    //title
    UILabel *titleTab00;
    UILabel *titleTab01;
    UILabel *titleTab1;
    UILabel *titleTab2;
    UILabel *titleAdd;
    
    //in detail
    UITextField *textField0Detail;
    UITextField *textField1Detail;
    UITextField *textField2Detail;
    UITextView *textView3Detail;
    
    //in add
    UITextField *textField0Add;
    UITextField *textField1Add;
    UITextField *textField2Add;
    UITextView *textView3Add;
    
    UILabel *lbLanguage;
    
    
    //
    NSMutableArray *productList;
    NSManagedObject *productSelected;
    NSIndexPath *indexPathSelected;
    
    int rowSwipe;
    
    
    //language
    int language;
    
    UIImageView *checkedVi;
    UIImageView *checkedEn;
    
    //confirm bought
    int confirmIndex;
    
    //doubleClickChecked
    BOOL isDoubleClick;
}

@end
